﻿<UserControl x:Class="WiiChuckDemo.NumericSeriesView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300"
             HorizontalAlignment="Stretch" VerticalAlignment="Top">
    
    <Border CornerRadius="3" BorderThickness="1" BorderBrush="#cccccc">
    <Grid Margin="3" >
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>

        <TextBlock Margin="0,0,4,0">Value:</TextBlock>
        <TextBlock Grid.Column="1" Text="{Binding CurrentValue.Value, StringFormat=F2}" />
        <TextBlock Grid.Row="1" Margin="0,0,4,0">Minimum:</TextBlock>
        <TextBlock Grid.Row="1" Grid.Column="1" Text="{Binding Minimum, StringFormat=F2}" />
        <TextBlock Grid.Row="2" Margin="0,0,4,0">Maximum:</TextBlock>
        <TextBlock Grid.Row="2" Grid.Column="1" Text="{Binding Maximum, StringFormat=F2}" />
        <TextBlock Grid.Row="3" Margin="0,0,4,0">Time stamp:</TextBlock>
        <TextBlock Grid.Row="3" Grid.Column="1" Text="{Binding CurrentValue.TimeStamp}" />
    </Grid>
        </Border>
</UserControl>
